<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html>
<head>
<title>${title} - Enqu&ecirc;te App</title>
<link media="screen" rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/enquete.css" />
</head>
<body>
	<!-- Header -->
	<header class="header">
		<jsp:include page="/WEB-INF/pages/common/${headerPage}.jsp" />
	</header>
	<!-- Navigation -->
	<nav>
		<jsp:include page="/WEB-INF/pages/common/navigation.jsp" />
	</nav>
	<!-- Content -->
	<section class="content">
		<c:if test="${fn:length(errors) gt 0}">
			<div class="error">
				<ul>
					<c:forEach var="error" items="${errors}">
						<li>${error}</li>
					</c:forEach>
				</ul>
			</div>
		</c:if>
		<c:if test="${not empty success}">
			<div class="success">${success}</div>
		</c:if>
		<jsp:include page="/WEB-INF/pages/${permission}/${content}.jsp" />
	</section>
	<!-- Footer -->
	<footer>
		<jsp:include page="/WEB-INF/pages/common/footer.jsp" />
	</footer>
</body>
</html>